package com.softlook.mt.server.db.dto;

import java.lang.Integer;
import java.lang.String;
import java.lang.Double;
import java.sql.Timestamp;
import com.softlook.mt.server.db.dto.Device;
import java.util.List;
import java.util.LinkedList;
import java.lang.Object;

public class Gpsdata {
	private Integer gpsdataid;
	private Integer deviceid;
	private String imei;
	private Double lat;
	private Double lon;
	private Double speed;
	private Double course;
	private Double hdop;
	private Timestamp time;
	private Integer mcc;
	private Integer mnc;
	private Integer ssi;
	private Integer gpsstatus;
	private Integer cell;
	private Double alt;
	private Integer lac;
	private String label;
	private Double distance;
	private Double gaslevel;
	private Device deviceidDeviceRefObj = null;
	private List gpsdataidDeviceeventRefList = new LinkedList();
	public Integer getGpsdataid() {
		return this.gpsdataid;
	}
	public void setGpsdataid(Integer gpsdataid) {
		this.gpsdataid = gpsdataid;
	}
	public Integer getDeviceid() {
		return this.deviceid;
	}
	public void setDeviceid(Integer deviceid) {
		this.deviceid = deviceid;
	}
	public String getImei() {
		return this.imei;
	}
	public void setImei(String imei) {
		this.imei = imei;
	}
	public Double getLat() {
		return this.lat;
	}
	public void setLat(Double lat) {
		this.lat = lat;
	}
	public Double getLon() {
		return this.lon;
	}
	public void setLon(Double lon) {
		this.lon = lon;
	}
	public Double getSpeed() {
		return this.speed;
	}
	public void setSpeed(Double speed) {
		this.speed = speed;
	}
	public Double getCourse() {
		return this.course;
	}
	public void setCourse(Double course) {
		this.course = course;
	}
	public Double getHdop() {
		return this.hdop;
	}
	public void setHdop(Double hdop) {
		this.hdop = hdop;
	}
	public Timestamp getTime() {
		return this.time;
	}
	public void setTime(Timestamp time) {
		this.time = time;
	}
	public Integer getMcc() {
		return this.mcc;
	}
	public void setMcc(Integer mcc) {
		this.mcc = mcc;
	}
	public Integer getMnc() {
		return this.mnc;
	}
	public void setMnc(Integer mnc) {
		this.mnc = mnc;
	}
	public Integer getSsi() {
		return this.ssi;
	}
	public void setSsi(Integer ssi) {
		this.ssi = ssi;
	}
	public Integer getGpsstatus() {
		return this.gpsstatus;
	}
	public void setGpsstatus(Integer gpsstatus) {
		this.gpsstatus = gpsstatus;
	}
	public Integer getCell() {
		return this.cell;
	}
	public void setCell(Integer cell) {
		this.cell = cell;
	}
	public Double getAlt() {
		return this.alt;
	}
	public void setAlt(Double alt) {
		this.alt = alt;
	}
	public Integer getLac() {
		return this.lac;
	}
	public void setLac(Integer lac) {
		this.lac = lac;
	}
	public String getLabel() {
		return this.label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public Double getDistance() {
		return this.distance;
	}
	public void setDistance(Double distance) {
		this.distance = distance;
	}
	public Double getGaslevel() {
		return this.gaslevel;
	}
	public void setGaslevel(Double gaslevel) {
		this.gaslevel = gaslevel;
	}
	public static boolean hasColumn(String column) {
		if(column.toUpperCase().equals("gpsdataid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("deviceid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("imei".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("lat".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("lon".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("speed".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("course".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("hdop".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("time".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("mcc".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("mnc".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("ssi".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("gpsstatus".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("cell".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("alt".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("lac".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("label".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("distance".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("gaslevel".toUpperCase())){
		   return true;
		}
		return false;
	}
	public boolean equals(Object object) {
		if(!(object instanceof Gpsdata)){
			return false;
		}
		
		Gpsdata table = (Gpsdata)object;
		if(this.gpsdataid == null &&  table.gpsdataid != null){
		   return false;
		}
		if(this.gpsdataid != null &&  table.gpsdataid == null){
		   return false;
		}
		if(this.gpsdataid != null && !this.gpsdataid.equals(table.gpsdataid)){
		   return false;
		}
		if(this.deviceid == null &&  table.deviceid != null){
		   return false;
		}
		if(this.deviceid != null &&  table.deviceid == null){
		   return false;
		}
		if(this.deviceid != null && !this.deviceid.equals(table.deviceid)){
		   return false;
		}
		if(this.imei == null &&  table.imei != null){
		   return false;
		}
		if(this.imei != null &&  table.imei == null){
		   return false;
		}
		if(this.imei != null && !this.imei.equals(table.imei)){
		   return false;
		}
		if(this.lat == null &&  table.lat != null){
		   return false;
		}
		if(this.lat != null &&  table.lat == null){
		   return false;
		}
		if(this.lat != null && !this.lat.equals(table.lat)){
		   return false;
		}
		if(this.lon == null &&  table.lon != null){
		   return false;
		}
		if(this.lon != null &&  table.lon == null){
		   return false;
		}
		if(this.lon != null && !this.lon.equals(table.lon)){
		   return false;
		}
		if(this.speed == null &&  table.speed != null){
		   return false;
		}
		if(this.speed != null &&  table.speed == null){
		   return false;
		}
		if(this.speed != null && !this.speed.equals(table.speed)){
		   return false;
		}
		if(this.course == null &&  table.course != null){
		   return false;
		}
		if(this.course != null &&  table.course == null){
		   return false;
		}
		if(this.course != null && !this.course.equals(table.course)){
		   return false;
		}
		if(this.hdop == null &&  table.hdop != null){
		   return false;
		}
		if(this.hdop != null &&  table.hdop == null){
		   return false;
		}
		if(this.hdop != null && !this.hdop.equals(table.hdop)){
		   return false;
		}
		if(this.time == null &&  table.time != null){
		   return false;
		}
		if(this.time != null &&  table.time == null){
		   return false;
		}
		if(this.time != null && !this.time.equals(table.time)){
		   return false;
		}
		if(this.mcc == null &&  table.mcc != null){
		   return false;
		}
		if(this.mcc != null &&  table.mcc == null){
		   return false;
		}
		if(this.mcc != null && !this.mcc.equals(table.mcc)){
		   return false;
		}
		if(this.mnc == null &&  table.mnc != null){
		   return false;
		}
		if(this.mnc != null &&  table.mnc == null){
		   return false;
		}
		if(this.mnc != null && !this.mnc.equals(table.mnc)){
		   return false;
		}
		if(this.ssi == null &&  table.ssi != null){
		   return false;
		}
		if(this.ssi != null &&  table.ssi == null){
		   return false;
		}
		if(this.ssi != null && !this.ssi.equals(table.ssi)){
		   return false;
		}
		if(this.gpsstatus == null &&  table.gpsstatus != null){
		   return false;
		}
		if(this.gpsstatus != null &&  table.gpsstatus == null){
		   return false;
		}
		if(this.gpsstatus != null && !this.gpsstatus.equals(table.gpsstatus)){
		   return false;
		}
		if(this.cell == null &&  table.cell != null){
		   return false;
		}
		if(this.cell != null &&  table.cell == null){
		   return false;
		}
		if(this.cell != null && !this.cell.equals(table.cell)){
		   return false;
		}
		if(this.alt == null &&  table.alt != null){
		   return false;
		}
		if(this.alt != null &&  table.alt == null){
		   return false;
		}
		if(this.alt != null && !this.alt.equals(table.alt)){
		   return false;
		}
		if(this.lac == null &&  table.lac != null){
		   return false;
		}
		if(this.lac != null &&  table.lac == null){
		   return false;
		}
		if(this.lac != null && !this.lac.equals(table.lac)){
		   return false;
		}
		if(this.label == null &&  table.label != null){
		   return false;
		}
		if(this.label != null &&  table.label == null){
		   return false;
		}
		if(this.label != null && !this.label.equals(table.label)){
		   return false;
		}
		if(this.distance == null &&  table.distance != null){
		   return false;
		}
		if(this.distance != null &&  table.distance == null){
		   return false;
		}
		if(this.distance != null && !this.distance.equals(table.distance)){
		   return false;
		}
		if(this.gaslevel == null &&  table.gaslevel != null){
		   return false;
		}
		if(this.gaslevel != null &&  table.gaslevel == null){
		   return false;
		}
		if(this.gaslevel != null && !this.gaslevel.equals(table.gaslevel)){
		   return false;
		}
		return true;
	}
	public Device getDeviceidDeviceRefObj() {
		return this.deviceidDeviceRefObj;
	}
	public void setDeviceidDeviceRefObj(Device deviceidDeviceRefObj) {
		this.deviceidDeviceRefObj = deviceidDeviceRefObj;
	}
	public List getGpsdataidDeviceeventRefList() {
		return this.gpsdataidDeviceeventRefList;
	}
	public void setGpsdataidDeviceeventRefList(List gpsdataidDeviceeventRefList) {
		this.gpsdataidDeviceeventRefList = gpsdataidDeviceeventRefList;
	}
}
